class BeInvitedEntity {
  int id;
  int userId;
  int beInvite;
  String createdAt;
  BeInviteDetails beInviteDetails;

  BeInvitedEntity(
      {this.id,
        this.userId,
        this.beInvite,
        this.createdAt,
        this.beInviteDetails});

  BeInvitedEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    beInvite = json['be_invite'];
    createdAt = json['created_at'];
    beInviteDetails = json['beInviteDetails'] != null
        ? new BeInviteDetails.fromJson(json['beInviteDetails'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['be_invite'] = this.beInvite;
    data['created_at'] = this.createdAt;
    if (this.beInviteDetails != null) {
      data['beInviteDetails'] = this.beInviteDetails.toJson();
    }
    return data;
  }
}

class BeInviteDetails {
  int identity;
  String userId;
  String idNumber;
  int familyId;
  String phone;
  String password;
  String currentGold;
  int keyNumbers;
  int status;
  int type;
  String appToken;
  int tokenTime;
  String wechatUnionid;
  String qqUnionid;
  String createdAt;
  String updatedAt;
  String joinFamily;
  int contribution;
  int winNumbers;
  String notWon;
  int userId1;
  String secondPassword;
  String avatar;
  String signature;
  int sex;
  int age;
  String interest;
  String city;
  String nickname;
  String wechat;
  int experience;
  int level;
  String rechargeAmount;
  String sendAmount;
  String birthday;

  BeInviteDetails(
      {this.identity,
        this.userId,
        this.idNumber,
        this.familyId,
        this.phone,
        this.password,
        this.currentGold,
        this.keyNumbers,
        this.status,
        this.type,
        this.appToken,
        this.tokenTime,
        this.wechatUnionid,
        this.qqUnionid,
        this.createdAt,
        this.updatedAt,
        this.joinFamily,
        this.contribution,
        this.winNumbers,
        this.notWon,
        this.userId1,
        this.secondPassword,
        this.avatar,
        this.signature,
        this.sex,
        this.age,
        this.interest,
        this.city,
        this.nickname,
        this.wechat,
        this.experience,
        this.level,
        this.rechargeAmount,
        this.sendAmount,
        this.birthday});

  BeInviteDetails.fromJson(Map<String, dynamic> json) {
    identity = json['identity'];
    userId = json['userId'];
    idNumber = json['id_number'];
    familyId = json['family_id'];
    phone = json['phone'];
    password = json['password'];
    currentGold = json['current_gold'];
    keyNumbers = json['key_numbers'];
    status = json['status'];
    type = json['type'];
    appToken = json['app_token'];
    tokenTime = json['token_time'];
    wechatUnionid = json['wechat_unionid'];
    qqUnionid = json['qq_unionid'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
    joinFamily = json['join_family'];
    contribution = json['contribution'];
    winNumbers = json['win_numbers'];
    notWon = json['not_won'];
    userId1 = json['user_id'];
    secondPassword = json['second_password'];
    avatar = json['avatar'];
    signature = json['signature'];
    sex = json['sex'];
    age = json['age'];
    interest = json['interest'];
    city = json['city'];
    nickname = json['nickname'];
    wechat = json['wechat'];
    experience = json['experience'];
    level = json['level'];
    rechargeAmount = json['recharge_amount'];
    sendAmount = json['send_amount'];
    birthday = json['birthday'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['identity'] = this.identity;
    data['userId'] = this.userId;
    data['id_number'] = this.idNumber;
    data['family_id'] = this.familyId;
    data['phone'] = this.phone;
    data['password'] = this.password;
    data['current_gold'] = this.currentGold;
    data['key_numbers'] = this.keyNumbers;
    data['status'] = this.status;
    data['type'] = this.type;
    data['app_token'] = this.appToken;
    data['token_time'] = this.tokenTime;
    data['wechat_unionid'] = this.wechatUnionid;
    data['qq_unionid'] = this.qqUnionid;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    data['join_family'] = this.joinFamily;
    data['contribution'] = this.contribution;
    data['win_numbers'] = this.winNumbers;
    data['not_won'] = this.notWon;
    data['user_id'] = this.userId1;
    data['second_password'] = this.secondPassword;
    data['avatar'] = this.avatar;
    data['signature'] = this.signature;
    data['sex'] = this.sex;
    data['age'] = this.age;
    data['interest'] = this.interest;
    data['city'] = this.city;
    data['nickname'] = this.nickname;
    data['wechat'] = this.wechat;
    data['experience'] = this.experience;
    data['level'] = this.level;
    data['recharge_amount'] = this.rechargeAmount;
    data['send_amount'] = this.sendAmount;
    data['birthday'] = this.birthday;
    return data;
  }
}